package com.yykj.user.center.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by chendg on 2021/9/7 0007.
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.yykj"})
@ComponentScan(basePackages = { "com.yykj.common", "com.yykj.user.center.server", "com.github.wxpay.sdk"})
public class UserCenterApplication {

	public static void main(String[] args) {
		SpringApplication.run(UserCenterApplication.class, args);
	}

	/*@Bean
	public WXPay wxpay() {
		try {
			WxConfig config = new WxConfig();
//			config.setCertFilePath(paymentProperties.getCerDir());
			return new WXPay(config);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}*/

}
